package com.easy.activiti;

import com.easy.activiti.mapper.ProxyFactory;
import com.easy.activiti.mapper.ActivitiMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @author zhouchuang
 * @date 2024-11-11 21:19:12
 */
@Configuration
public class MapperAutoScanConfiguration {
    @Autowired
    private JdbcTemplate jdbcTemplate;
    @Bean
    public ActivitiMapper activitiMapper(){
      return new ProxyFactory<ActivitiMapper>(ActivitiMapper.class,jdbcTemplate).getProxyInstance();
    }
}
